package dao;

import java.util.List;

import org.hibernate.Query;
import org.hibernate.Session;
import org.junit.Test;

import utils.HibernateUtils;
import entity.Ding;

public class DingDao {
	@Test
	public List<Ding> selctallding() {
		Session session = HibernateUtils.getSession();
		String hql = " from Ding where state=0 ";
		Query query = session.createQuery(hql);
		List<Ding> ue = query.list();			
		return ue;
	}
}
